package dfbz.demo01;

import dfbz.util.StringUtil;

public class Test05 {
    public static void main(String[] args) {
        String str="java";
        char[] chars=str.toCharArray();
        StringUtil stringUtil1=new StringUtil();
        StringUtil stringUtil2=new StringUtil();
        String subString1 = stringUtil1.subString(chars, 2, 2);
        String subString2 = stringUtil2.subString(chars, 2, 2);
        System.out.println(subString1);
        System.out.println(subString2);
        System.out.println(stringUtil1.age);
        System.out.println(stringUtil1.id);
        stringUtil1.test01();  //对象调用成员方法
    }
}
